<!DOCTYPE html>
	<html lang="en">
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1.0">
		<title>Document</title>
		<link rel="stylesheet" href="../layui/css/layui.css">
		<link rel="stylesheet" type="text/css" href="../css/comments.css">
		<script src="../js/jquery-3.3.1.js"></script>
		<script src="../layui/layui.all.js"></script>
	</head>
	<body>
		<header>
			<a href="javascript:history.back(-1)" class="back"><img src="../img/back.png" height="18px"></a>
			<div class="center title">评论</div>
		</header>
		
		<div class="content">
			<!-- <div class="flex h-portrait">
				<img src="../img/logo.png" height="50px">
				<div class="content-r">
					<div class="flex">
						<p>小苏苏</p>
						<p class="user-c">评论了：明天有人去爬山吗</p>
					</div>
					<div>明天可以约一起吗？</div>
					<div class="flex reply-w">
						<p>04-08<span class="time">11:00</span></p>
						<div class="flex reply">
							<img src="../img/message-n.png" height="12px">
							<p>回复</p>
						</div>
					</div>
				</div>
			</div> -->
		</div>
	</body>
</html>



<script>
	var userId=localStorage.getItem('uId');

	$.post('/meiyou/dongtai/selectNotDontaiPinglun',{userId:userId},function(data) {
		console.log(data);
		var datas=data.extend.result;
		$.each(datas,function(i,val){
			$('.content').append("<div class=\"flex h-portrait\">\n" +
					    "\t\t\t\t<img src=\"../img/logo.png\" height=\"50px\">\n" +
					    "\t\t\t\t<div class=\"content-r\">\n" +
					    "\t\t\t\t\t<div class=\"flex\">\n" +
					    "\t\t\t\t\t\t<p>"+val.name+"</p>\n" +
					    "\t\t\t\t\t\t<p class=\"user-c\">评论了："+val.dongtaiContent+"</p>\n" +
					    "\t\t\t\t\t</div>\n" +
					    "\t\t\t\t\t<div>"+val.pinglunContent+"</div>\n" +
					    "\t\t\t\t\t<div class=\"flex reply-w\">\n" +
					    "\t\t\t\t\t\t<p>"+val.time+"</p>\n" +
					    "\t\t\t\t\t\t<div class=\"flex reply\">\n" +
					    "\t\t\t\t\t\t\t<img src=\"../img/message-n.png\" height=\"12px\">\n" +
					    
					    "\t\t\t\t\t\t</div>\n" +
					    "\t\t\t\t\t</div>\n" +
					    "\t\t\t\t</div>\n" +
					    "\t\t\t</div>")
		})
	});

</script>